﻿/*******************************************************************************
 * Copyright © 2016
 * 
 * Description: MVC快速开发平台  FROM http://xmwxgn.com
 *
*********************************************************************************/
using System.Data.Entity.ModelConfiguration;
using ZFine.Domain.Entity;

namespace ZFine.Mapping
{
    public class ModuleButtonMap : EntityTypeConfiguration<ModuleButtonEntity>
    {
        public ModuleButtonMap()
        {
            this.ToTable("Sys_ModuleButton");
            this.HasKey(t => t.F_Id);
            Property(p => p.F_Id).HasMaxLength(50);
            Property(p => p.F_ParentId).HasMaxLength(50);
            Property(p => p.F_EnCode).HasMaxLength(50);
            Property(p => p.F_FullName).HasMaxLength(50);
            Property(p => p.F_Description).HasMaxLength(500);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);


            Property(p => p.F_ModuleId).HasMaxLength(50);
            Property(p => p.F_Icon).HasMaxLength(50);
            Property(p => p.F_JsEvent).HasMaxLength(50);
            Property(p => p.F_UrlAddress).HasMaxLength(500);
            Property(p => p.F_Id).HasMaxLength(50);

        
        }
    }
}
